home *** CD-ROM | disk | FTP | other *** search
- %! HWGPOST >= V22.10 initialisation file
- %
- % $Id: init.ps,v 2.8 1994/06/03 08:40:03 heinz Exp $
- %
- % Based in part on Post V1.7
- % (C) Adrian Aylward 1989, 1991
- %
- % HWGPOST ©1993,1994 Heinz Wrobel, for Joan Thuesen
- %
- % You may freely copy, use, and modify this file
- %
- % This file should be run before most programs
-
- % A dummy status dictionary
- false setglobal
- /statusdict <<
- /waittimeout 0
- /checkpassword { 0 eq } bind
- /product product
- /processcolors deviceinfo /Colors get
- >> def
- true setglobal
-
- % A dummy server dictionary
-
- /serverdict << /exitserver { pop } bind >> def
-
- % We need global VM for modifications to systemdict!
- true setglobal
- systemdict begin
-
- % Ignore CTRL/D, CTRL/L, and simple CRs
-
- <04> cvn {} def
- <0c> cvn {} def
- <0d> cvn {} def
-
- % Dummies for ugly PostScript code
-
- /setjobtimeout { pop } bind def
- /letter {} bind def
-
- % Ok, lets return to the previous vm mode and make the systemdict readonly
- end
- systemdict readonly pop
- false setglobal
-
- % We need to register all our resources on disk now. Otherwise HWGPOST
- % won't find any fonts!
- % We look for the file "HWGPOSTResources" and execute it if it is available
- % If not, we check for it as "POST:HWGPOSTResources", too.
- % if this fails again, we can't do anything reasonable about it so we don't.
- (HWGPOSTResources) dup status
- {pop pop pop pop true}
- {pop
- (%POST%HWGPOSTResources) dup status
- {pop pop pop pop true}
- {pop false}
- ifelse
- }
- ifelse
- {
- currentglobal exch true setglobal
- run
- setglobal
- }
- if
-
- % Ok, we now go to local VM for user stuff
- false setglobal
-
- %
- % To keep compatibility with the old post.library I need to have
- % the renderband commands available. I don't want them to "clutter"
- % the PS name space by default, so they are built in as "@currentband"
- % and "@setband" and need to be redefined for "old" SW.
- %
- % I encourage any user of HWGPOST to use the "@" names for these operators
- % as I might drop support for the old names in init.ps in the future.
- %
- /currentband /@currentband load def
- /setband /@setband load def
-
- % Define a dummy font - prints out big dots ...
- % This dummy font is in local VM
-
- /DummyFont 10 dict dup begin
- /FontName /DummyFont def
- /FontMatrix [0.001 0 0 0.001 0 0] def
- /FontType 3 def
- /FontBBox [0 -300 500 700] def
- /Encoding StandardEncoding def
- /BuildChar
- { pop pop
- 500 0 50 0 450 400 setcachedevice
- 250 200 200 0 360 arc fill
- } bind def
- /Painttype 0 def
- end definefont pop
- %
- % Establish the dummy font as the default, as some fonts need it to
- % define themselves.
- %
- /DefaultFontName /DummyFont def
-
- % Uncomment the following line to use FunkyFont as the default font
- %/DefaultFontName /FunkyFont def
-
- % Uncomment the following line to use Courier as the default font
- %/DefaultFontName /Courier def
-
- % Just to be sure we start fresh. Actually there should
- % be no need to do this as it would indicate an error condition anyway.
- cleardictstack
-
- % EOT
-